<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
<f:view locale="#{language.locale}">
	<center>
		<h:dataTable border="1" value="#{createAccount.users}" var="u">
			<h:column>
				<f:facet name="header">#{msg['userid']}</f:facet>
				#{u.userID}
			</h:column>
			<h:column>
				<f:facet name="header">#{msg['username']}</f:facet>
				#{u.userName}
			</h:column>
			<h:column>
				<f:facet name="header">#{msg['role']}</f:facet>
				#{u.role}
			</h:column>
			<h:column>
				<f:facet name="header">#{msg['dept']}</f:facet>
				#{u.department}
			</h:column>
			<h:column>
				<f:facet name="header">#{msg['action']}</f:facet>
				<h:form>
					<h:commandLink action="#{createAccount.deleteUser}" value="#{msg['delete']}"
						onclick="if (! confirm('#{eMessage.deleteUser}')) return false">
						<f:param name="UID" value="#{u.userID}"></f:param>
					</h:commandLink>
				</h:form>
			</h:column>
		</h:dataTable>
	</center>
</f:view>
</body>
</html>
